// const path = require('path')
// console.log(path)

// console.log(path.join(__dirname, 'src'))

const req = require.context('./svg', false, /\.svg$/)

const requireAll = (requireContext) => {
  // [].keys() 对象key或数组索引 == 数组
  // [].map() 调用map中函数从而返回新数组
  requireContext.keys().map(requireContext)
}
requireAll(req)
